package com.ygsoft.activiti.model;

import org.activiti.engine.task.Comment;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 完成的业务单
 * 由于activiti没有已经处理的业务单这一种办法
 * 自己实现
 * 通过这个中间表去查询
 * @author zhx
 * @create 2017-11-28 14:17
 **/
@Entity
@Table(name = "act_hi_comment")
public class CompleteTask implements Comment{

    @Id
    @Column(name = "ID_")
    private String id;

    @Column(name = "USER_ID_")
    private String userId;

    @Column(name = "TIME_")
    private Date time;

    @Column(name = "TASK_ID_")
    private String taskId;

    @Column(name = "PROC_INST_ID_")
    private String processInstanceId;

    @Column(name = "ACTION_")
    private String action;

    @Column(name = "TYPE_")
    private String type;

    @Column(name = "MESSAGE_")
    private String message;

    @Column(name = "FULL_MSG_")
    private String fullMessage;

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String getId() {
        return id;
    }


    public void setId(String id) {
        this.id = id;
    }

    @Override
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Override
    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    @Override
    public String getProcessInstanceId() {
        return processInstanceId;
    }

    public void setProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    @Override
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String getFullMessage() {
        return fullMessage;
    }

    public void setFullMessage(String fullMessage) {
        this.fullMessage = fullMessage;
    }
}
